REM ********************************************************************************
REM Install test CA certs to enable proxying of test roles with invalid certificates
REM ********************************************************************************
REM Use this script to optionally install any signing/intermediate certificate authorities
REM that are not installed by default. This includes self-signed certificates.
REM 
REM To Use: 
REM 1. Export the self-signed/issuer certificate as a X.509 certificate (ie. The private
REM	   key is not required).
REM 2. Add the certificate (.cer) to the Startup folder in the Setup project. Ensure
REM    Build Action==None and Copy to Output Directory==Copy Always.
REM 3. Modify this file to enable a certutil command to install the named certificate.
REM    Note that you must reference the certificate file using path relative to the
REM    root folder, so generally this will be 'Startup\myselfsignedcert.cer'
REM ********************************************************************************
REM NOTE: This facility is only provided for dev/test situations. DO NOT use this
REM facility for production servers and you will be vulnerable to Certificate hijaking
REM and Man in the Middle attacks.
REM ********************************************************************************

setlocal
set logfile=%StartupLogs%\installTestRoleCerts.log

REM certutil -enterprise -addstore root startup\testservice.cer >> %logfile% 2>&1

EXIT /B 0